package cn.joyfulmedia.dao;

import cn.joyfulmedia.entity.ExamMisResources;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamMisResourcesMapper {

    /**
     * 保存
     *
     */
    public Integer saveResources(ExamMisResources entity) throws Exception;

    /**
     * 修改
     *
     */
    public Integer updateResourcesById(ExamMisResources entity) throws Exception;

    /**
     * 根据ID查找
     *
     * @param id
     * @return
     * @throws Exception
     */
    ExamMisResources selectResourcesById(Object id) throws Exception;

    List<ExamMisResources> findByAccountId(Long id) throws Exception;

    List<ExamMisResources> list(@Param("resource") ExamMisResources resource);

    List<ExamMisResources> findByRoleId(Long id)throws Exception;
    
    
    int deleteByPrimaryKey(Integer id);

    int insert(ExamMisResources record);

    int insertSelective(ExamMisResources record);

    ExamMisResources selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ExamMisResources record);

    int updateByPrimaryKeyWithBLOBs(ExamMisResources record);

    int updateByPrimaryKey(ExamMisResources record);
}